/*
 * Created by: vadikv
 * Created: Friday, March 07, 2008
 */

namespace OneDayModel.Interfaces
{
    public interface IUser
    {
        void AssignRole(IRole role);
        void SetAttributes(IAttributeRecord[] attributes);
        void Create();

        string this[string attributeName] { get; set; }
        void SetUserAccountStatus(AccountStatus accountStatus);
        void CommitChanges();
        void AddAlbum(IAlbum album);
        IAlbum GetAlbum(string albumName);
    }

    public enum AccountStatus
    {
        notExist,
        existAndActive,
        existAndBanned,
        existAndWaitingForConfirmation
    }
}